import request from "@/utils/request";

// 查询还款信息列表
export function listBizLoanBill(query) {
  return request({
    url: "/biz/bizLoanBill/list",
    method: "get",
    params: query,
  });
}

// 查询还款信息详细
export function getBizLoanBill(id) {
  return request({
    url: "/biz/bizLoanBill/" + id,
    method: "get",
  });
}

// 新增还款信息
export function addBizLoanBill(data) {
  return request({
    url: "/biz/bizLoanBill",
    method: "post",
    data: data,
  });
}

// 修改还款信息
export function updateBizLoanBill(data) {
  return request({
    url: "/biz/bizLoanBill",
    method: "put",
    data: data,
  });
}

// 删除还款信息
export function delBizLoanBill(id) {
  return request({
    url: "/biz/bizLoanBill/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizLoanBill/findMaxSort",
    method: "get",
  });
}
// 导出还款信息
export function exportBizLoanBill(query) {
  return request({
    url: "/biz/bizLoanBill/export",
    method: "get",
    params: query,
  });
}
